nbCities = 500;

maxValue = 200;


filePrefix = 'data/';

 
for i = 0.5:0.05:1
    fileP = strcat(filePrefix,num2str(nbCities),'/',num2str(i),'/');
    Cost = generateCosts(nbCities);
    mkdir(fileP);
    for j = 1:10
       GenCost = fillRandom(Cost,nbCities*nbCities*0.75,maxValue);

       cities = 1:nbCities;
       cities = cities(randperm(nbCities));
       [c result] = tsp(cities,2000,i,1000,nbCities/2,GenCost);
       count = calculateDists( result, GenCost, maxValue );
       file = strcat(fileP,'Result',num2str(j),'.dat');
       csvwrite(file, count);

       display(strcat('Cities-',num2str(nbCities),'-',num2str(i),'-',num2str(j)));
    end
end



